from models import Person
from google.appengine.ext import db
from random import random

def cant_create_person_with_invalid_gender():
    p = Person()
    p.age = 22
    p.gender = "Male" #should be an error gender should be one of 'male' or 'female'
    p.put()
    people = db.GqlQuery("SELECT * FROM Person")
    for peep in people:
        print peep.gender
        
cant_create_person_with_invalid_gender()